package android.medicalcloud.com.yiapp.yilian.application;

import android.app.Activity;
import android.app.Application;
import android.medicalcloud.com.yiapp.yilian.configer.xml.HttpManager;
import android.os.Bundle;

/**
 * Created by wanggenlin on 17-5-18.
 */
public class YilianAppcation extends Application  implements Application.ActivityLifecycleCallbacks {
    public static YilianAppcation instance;
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        HttpManager.getInstance().init();
        registerActivityLifecycleCallbacks(this);
//        JPushInterface.init(getApplicationContext());
//        String rid = JPushInterface.getRegistrationID(getApplicationContext());
//        PreferceManager.getInsance().saveValueBYkey("jpushId", rid);
    }

    @Override
    public void onActivityCreated(Activity activity, Bundle savedInstanceState) {

    }

    @Override
    public void onActivityStarted(Activity activity) {

    }

    @Override
    public void onActivityResumed(Activity activity) {

    }

    @Override
    public void onActivityPaused(Activity activity) {

    }

    @Override
    public void onActivityStopped(Activity activity) {

    }

    @Override
    public void onActivitySaveInstanceState(Activity activity, Bundle outState) {

    }

    @Override
    public void onActivityDestroyed(Activity activity) {

    }
}
